package com.qf.test;

import com.qf.pojo.Admin;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description: 公用常量
 * @Data: 2022/8/28 23:10
 * @Pacakge: com.qf.test
 * @ClassName: AdminTest04
 * @Author: fan
 */
public class AdminTest04 {
    public static void main(String[] args) {
        //初始化容器
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("springconfig.xml");
        Admin admin = (Admin) applicationContext.getBean("admin");
        Admin admin01 = (Admin) applicationContext.getBean("admin01");
        System.out.println("admin = " + admin);
        System.out.println("admin01 = " + admin01);
    }
}
